package com.xtxb.utils.log;

/**
 * 作者: xtxb-fedora
 * <p>
 * 日期: 2021年01月19日-上午11:25
 * <p>
 * 版权说明：xtxb
 * <p>
 *  Hello world，用于测试 日志输出，清尝试修改log.conf中的配置
 *  java -jar log-1.0.0.jar
 */
public class App 
{

    public static  void main(String[] a){

        new Thread(){
            /**
             * If this thread was constructed using a separate
             * <code>Runnable</code> run object, then that
             * <code>Runnable</code> object's <code>run</code> method is called;
             * otherwise, this method does nothing and returns.
             * <p>
             * Subclasses of <code>Thread</code> should override this method.
             *
             * @see #start()
             * @see #stop()
             * @see #
             */
            @Override
            public void run() {
                DebugLogger log= DebugLoggerFactory.getLogger(App.class);
                while(true) {
                    log.message("Hello Log Test!!!", null);
                    try {
                        sleep(10);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        }.start();
    }
}
